/**
 * Copyright (C) Skywares Information Technology, LTD. 
 * All Rights Reserved.
 *
 * SysException.java created on 2020年2月2日 下午1:06:47 by Lyon Lu 
 */
package com.mvc.server.miaosha.exception;

import com.mvc.server.result.ResultCode;

/**
 * <pre>
 * Description:
 * 
 * @author Lyon Lu
 * @date 2020年2月2日 下午1:06:47
 *
 * </pre>
 */
public class SysException extends RuntimeException{

	/**
	* @fields serialVersionUID : TODO
	*/
	private static final long serialVersionUID = 5985307895513158393L;
	
	private ResultCode resultCode;
	
	public SysException(ResultCode resultCode) {
		super(resultCode.getMessage());
		this.resultCode = resultCode;
	}

	/**
	 * @return the resultCode
	 */
	public ResultCode getResultCode() {
		return resultCode;
	}

	/**
	 * @param resultCode the resultCode to set
	 */
	public void setResultCode(ResultCode resultCode) {
		this.resultCode = resultCode;
	}
}
